<div class="span3">
    <div class="well sidebar-nav">
        <ul class="nav nav-list">
            <li class="nav-header"><?php echo __d('cake', 'Actions'); ?></li>
            <li><?php echo $this->Html->link(__('List Images'), array('action' => 'index')); ?></li>
            <li><?php echo $this->Html->link(__('List Products'), array('controller' => 'products', 'action' => 'index')); ?> </li>
            <li><?php echo $this->Html->link(__('New Product'), array('controller' => 'products', 'action' => 'add')); ?> </li>
        </ul>
    </div>
</div>

<div class="span9">
    <?php echo $this->Session->flash(); ?>
<?php echo $this->Form->create('Image', array('type' => 'file')); ?>
    <fieldset>
        <legend><?php echo __('Admin Nueva Imagen'); ?></legend>
    <?php
        echo $this->Form->input('product_id', array('label' => 'Producto'));
        echo $this->Form->input('filename', array('label' => 'Titulo'));
        echo $this->Form->input('filepath', array('type' => 'file','label' => 'Imagen'));
        echo $this->Form->input('link', array('label' => 'Enlace'));
        echo $this->Form->input('alt', array('label' => 'Texto alternativo para la imagen'));
        echo $this->Form->input('is_active', array('label' => 'Imagen activa'));
        echo $this->Form->input('is_front', array('label' => 'Imagen principal del producto'));
    ?>
    </fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>

